package com.kaoshi.T23;

import java.text.*;
import java.util.Date;
import java.util.Scanner;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/4/7 15:20
 * @description
 */
public class Test {
    public static void main(String[] args){
        Scanner input = new Scanner(System.in);
        System.out.println("请输入年龄：");
        String age = input.next();
        System.out.println("请输入分数：");
        String score = input.next();
        System.out.println("请输入入学时间：");
        String time = input.next();

        System.out.println("年龄为："+Integer.valueOf(age));
        System.out.println("分数为："+Double.valueOf(score));

        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
        try {
            Date date = formatter.parse(time);
            System.out.println("入学日期为："+date);
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }
}
